package com.jiukuaidao.zhulin.module.home;

import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import com.jiukuaidao.library.base.BaseActivity;
import com.jiukuaidao.zhulin.R;
import com.jiukuaidao.zhulin.util.AddressInfoUtil;
import com.jiukuaidao.zhulin.util.BDUtils;

/**
 * Author : PaiTaSuo
 * Date : 2016/6/30
 * Description :
 */
public class SplashScreenActivity extends BaseActivity {
    private Handler mHandler;
    protected int _splashTime = 2000;// 欢迎界面显示时间

    @Override
    protected View getTargetView() {
        return null;
    }

    @Override
    protected int getContentLayoutId() {
        return R.layout.activity_splash;
    }

    @Override
    protected void handleBundle(Bundle bundle) {

    }

    @Override
    protected void init() {
        mHandler = new Handler();
        mHandler.postDelayed(new Runnable() {
            @Override
            public void run() {
                intentJump(MainActivity.class);
                finish();
            }
        }, _splashTime);
        AddressInfoUtil.cleanAddressInfo();
        BDUtils.start();
    }

}
